<?php

namespace app\index\controller;

class Contact extends base
{
    public function _initialize()
    {
        parent::_initialize();
        $this->obj = model('About');
    }

    public function index()
    {

        $this->obj->where('cid',$this->request->param('navid'));
        $data = $this->obj->find();
        $this->assign([
            'data' => $data,
        ]);
        return $this->fetch();
    }
}
